.class public Lcom/instagram/android/creation/widget/RotationGestureController$Vector;
.super Landroid/graphics/PointF;
.source "RotationGestureController.java"


# instance fields
.field private a:D


# direct methods
.method public constructor <init>(FF)V
    .locals 4
    .parameter "x"
    .parameter "y"

    .prologue
    .line 80
    invoke-direct {p0, p1, p2}, Landroid/graphics/PointF;-><init>(FF)V

    .line 81
    float-to-double v0, p2

    float-to-double v2, p1

    invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->atan2(DD)D

    move-result-wide v0

    iput-wide v0, p0, Lcom/instagram/android/creation/widget/RotationGestureController$Vector;->a:D

    .line 82
    return-void
.end method

.method public static a(D)D
    .locals 6
    .parameter

    .prologue
    const-wide v4, 0x401921fb54442d18L

    .line 101
    move-wide v0, p0

    :goto_0
    const-wide v2, 0x400921fb54442d18L

    cmpl-double v2, v0, v2

    if-lez v2, :cond_0

    .line 102
    sub-double/2addr v0, v4

    goto :goto_0

    .line 105
    :cond_0
    :goto_1
    const-wide v2, -0x3ff6de04abbbd2e8L

    cmpg-double v2, v0, v2

    if-gtz v2, :cond_1

    .line 106
    add-double/2addr v0, v4

    goto :goto_1

    .line 108
    :cond_1
    return-wide v0
.end method

.method public static a(Lcom/instagram/android/creation/widget/RotationGestureController$Vector;Lcom/instagram/android/creation/widget/RotationGestureController$Vector;)D
    .locals 4
    .parameter
    .parameter

    .prologue
    .line 91
    iget-wide v0, p1, Lcom/instagram/android/creation/widget/RotationGestureController$Vector;->a:D

    iget-wide v2, p0, Lcom/instagram/android/creation/widget/RotationGestureController$Vector;->a:D

    sub-double/2addr v0, v2

    .line 92
    invoke-static {v0, v1}, Lcom/instagram/android/creation/widget/RotationGestureController$Vector;->a(D)D

    move-result-wide v0

    return-wide v0
.end method
